<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Vod-kaKlient: Dokumentacja klasy Player</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Wygenerowano przez Doxygen 1.7.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Szukaj');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Strona&nbsp;główna</span></a></li>
      <li class="current"><a href="annotated.html"><span>Klasy</span></a></li>
      <li><a href="files.html"><span>Pliki</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Szukaj" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Lista&nbsp;klas</span></a></li>
      <li><a href="classes.html"><span>Indeks&nbsp;klas</span></a></li>
      <li><a href="functions.html"><span>Składowe&nbsp;klas</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Typy publiczne</a> &#124;
<a href="#pub-methods">Metody publiczne</a>  </div>
  <div class="headertitle">
<h1>Dokumentacja klasy Player</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Player" -->
<p><code>#include &lt;<a class="el" href="player_8hpp_source.html">player.hpp</a>&gt;</code></p>

<p><a href="classPlayer-members.html">Lista wszystkich składowych.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Typy publiczne</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><b>State</b> { <b>STOP</b> =  1, 
<b>PLAY</b>, 
<b>PAUSE</b>
 }</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Metody publiczne</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPlayer.html#a9ff98b2e35dd460cb6ff88aca7d6fe13">Player</a> (wxFrame *wind)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Konstruktor podstawowy. Wymaga podania okna wxWidgets z ktorm bedzie wspolpracowal. Okno bedzie mialo ustawiane odpowiedni status (SetStatusText), a w przypadku odtwarzania - bedzie odswiezane (wydarzenie onPaint).  <a href="#a9ff98b2e35dd460cb6ff88aca7d6fe13"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPlayer.html#a077488d7ae0fba42867cb0ece1c349bb">open</a> (string address)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Funkcja laczy sie z podanym adresem RTSP.  <a href="#a077488d7ae0fba42867cb0ece1c349bb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8cd819ec3812c26e038e74426bc2b90f"></a><!-- doxytag: member="Player::play" ref="a8cd819ec3812c26e038e74426bc2b90f" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPlayer.html#a8cd819ec3812c26e038e74426bc2b90f">play</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Funkcja uruchamia proces odtwarzania. W nowym watku uruchamiana jest petla odswiezajaca okno. Wymagane jest zaimplementowanie zdarzenia onPaint, gdzie beda rysowane ramki pobrane metoda getFrame. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa7749254cf909d029127d4622670c522"></a><!-- doxytag: member="Player::pause" ref="aa7749254cf909d029127d4622670c522" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPlayer.html#aa7749254cf909d029127d4622670c522">pause</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Zatrzymanie odtwarzanego nagrania. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">wxBitmap&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPlayer.html#aed4712949eb7ae699a77a91a354f9683">getFrame</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Zwraca kolejna zdekodowana ramke wideo jako obiekt wxBitmap. Aby odtworzyc cale nagranie, nalezy wywolywac ta funkcje w metodzie obslugujacej wydarzenie onPaint okna wxWidgets.  <a href="#aed4712949eb7ae699a77a91a354f9683"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPlayer.html#a19455eaf5d3c267ff4261b5561f833ad">getWidth</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Zwraca szerokosc ramki odtwarzanego strumienia wideo.  <a href="#a19455eaf5d3c267ff4261b5561f833ad"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPlayer.html#ab3c9826598f403d6a3c20281d4f3c13e">getHeight</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Zwraca wysokosc ramki odtwarzanego strumienia wideo.  <a href="#ab3c9826598f403d6a3c20281d4f3c13e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">volatile State&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPlayer.html#a9e2a7ba599527224a271dec6c4a600ec">getState</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Zwraca stan odtwarzacza.  <a href="#a9e2a7ba599527224a271dec6c4a600ec"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Opis szczegółowy</h2>
<dl class="author"><dt><b>Autor:</b></dt><dd>Maciej Suminski </dd></dl>
<dl class="version"><dt><b>Wersja:</b></dt><dd>1.0</dd></dl>
<p>Projekt VoD-ka. Klasa obslugujaca protokol RTSP i dekodujaca MPEG. Zastosowano biblioteke FFmpeg &lt;<a href="http://ffmpeg.org">http://ffmpeg.org</a>&gt;. </p>
<hr/><h2>Dokumentacja konstruktora i destruktora</h2>
<a class="anchor" id="a9ff98b2e35dd460cb6ff88aca7d6fe13"></a><!-- doxytag: member="Player::Player" ref="a9ff98b2e35dd460cb6ff88aca7d6fe13" args="(wxFrame *wind)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Player::Player </td>
          <td>(</td>
          <td class="paramtype">wxFrame *&nbsp;</td>
          <td class="paramname"> <em>wind</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Konstruktor podstawowy. Wymaga podania okna wxWidgets z ktorm bedzie wspolpracowal. Okno bedzie mialo ustawiane odpowiedni status (SetStatusText), a w przypadku odtwarzania - bedzie odswiezane (wydarzenie onPaint). </p>
<dl class="author"><dt><b>Autor:</b></dt><dd>Maciej Suminski </dd></dl>
<dl class="version"><dt><b>Wersja:</b></dt><dd>1.0</dd></dl>
<p>Projekt VoD-ka. Klasa obslugujaca protokol RTSP i dekodujaca MPEG. Zastosowano biblioteke FFmpeg &lt;<a href="http://ffmpeg.org">http://ffmpeg.org</a>&gt;. </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>wind</em>&nbsp;</td><td>Okno na ktorym beda rysowane zdekodowane ramki. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Dokumentacja funkcji składowych</h2>
<a class="anchor" id="aed4712949eb7ae699a77a91a354f9683"></a><!-- doxytag: member="Player::getFrame" ref="aed4712949eb7ae699a77a91a354f9683" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wxBitmap Player::getFrame </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Zwraca kolejna zdekodowana ramke wideo jako obiekt wxBitmap. Aby odtworzyc cale nagranie, nalezy wywolywac ta funkcje w metodzie obslugujacej wydarzenie onPaint okna wxWidgets. </p>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Kolejna zdekodowana ramka strumienia wideo. </dd></dl>

</div>
</div>
<a class="anchor" id="ab3c9826598f403d6a3c20281d4f3c13e"></a><!-- doxytag: member="Player::getHeight" ref="ab3c9826598f403d6a3c20281d4f3c13e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int Player::getHeight </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Zwraca wysokosc ramki odtwarzanego strumienia wideo. </p>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>0 w przypadku bledu odtwarzania, w przeciwnym wypadku - szerokosc ramki odtwarzanego strumienia w pikselach. </dd></dl>

</div>
</div>
<a class="anchor" id="a9e2a7ba599527224a271dec6c4a600ec"></a><!-- doxytag: member="Player::getState" ref="a9e2a7ba599527224a271dec6c4a600ec" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">volatile Player::State Player::getState </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Zwraca stan odtwarzacza. </p>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Wartosc PLAY, STOP lub PAUSE. </dd></dl>

</div>
</div>
<a class="anchor" id="a19455eaf5d3c267ff4261b5561f833ad"></a><!-- doxytag: member="Player::getWidth" ref="a19455eaf5d3c267ff4261b5561f833ad" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int Player::getWidth </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Zwraca szerokosc ramki odtwarzanego strumienia wideo. </p>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>0 w przypadku bledu odtwarzania, w przeciwnym wypadku - szerokosc ramki odtwarzanego strumienia w pikselach. </dd></dl>

</div>
</div>
<a class="anchor" id="a077488d7ae0fba42867cb0ece1c349bb"></a><!-- doxytag: member="Player::open" ref="a077488d7ae0fba42867cb0ece1c349bb" args="(string address)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Player::open </td>
          <td>(</td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>address</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Funkcja laczy sie z podanym adresem RTSP. </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>address</em>&nbsp;</td><td>Adres RTSP w postaci "rtsp://host.domena:port/strumien" </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>Dokumentacja dla tej klasy została wygenerowana z plików:<ul>
<li><a class="el" href="player_8hpp_source.html">player.hpp</a></li>
<li>player.cpp</li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Klasy</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Funkcje</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Wygenerowano Wed Jan 19 2011 15:22:07 dla Vod-kaKlient programem&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
